﻿using System;

namespace ConsoleApp39
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] ejz = new int[8];
            int sr = int.Parse(Console.ReadLine());
            for (int i = 0; i < ejz.Length; i++)
            {
                ejz[i] = sr % 2;
                    sr = sr / 2;
                Console.Write($"{ejz[i]}");
            }

            Console.ReadKey();
        }
    }
}
